package com.cci.kangdao.fieldService.controller;

import com.cci.kangdao.fieldService.service.SyncProcessor;
import com.cci.kangdao.utilTool.ParameterTool;
import com.cci.kangdao.utilTool.RequestContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @author William Du
 * @date 2020/2/7
 */
@Controller
public class RetryController {

    @Resource
    private SyncProcessor syncProcessor;

    @RequestMapping(value = "/retryFieldServiceExceptionSync.aspx",method = RequestMethod.GET)
    public void retryExceptionSync(){
        syncProcessor.syncRetry();
        ParameterTool.writeSuccessResponse(RequestContextHolder.getResponse());
    }

}
